import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import Antd from "ant-design-vue";
import Storage from 'vue-ls';

import "ant-design-vue/dist/antd.css";
import "./global.less"; // global style


import ProLayout, { PageHeaderWrapper } from "@ant-design-vue/pro-layout";
Vue.component('pro-layout', ProLayout)
Vue.component('page-container', PageHeaderWrapper)
Vue.component('page-header-wrapper', PageHeaderWrapper)

Vue.config.productionTip = false;
Vue.use(Antd);
const storageOptions = {
  namespace: 'vuejs__', // key键前缀
  name: 'ls', // 命名Vue变量.[ls]或this.[$ls],
  storage: 'local', // 存储名称: session, local, memory
};
Vue.use(Storage, storageOptions);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
